// 存放所有审批模块接口
import myaxios from "../MyAxios";
import URLENV from "../BaseUrl";

let BMDURL = URLENV.BMDURL;
// let BMDURL = "http://localhost:3010/";
// let BMDURL= 'https://web.codeboy.com/bmdapi/'

const examineApi = {
  /**
   *已审批列表（带分页）
   * @param {object} params 参数列表 {page:1, pagesize:4}
   */
  queryInExamineList(params) {
    let url = BMDURL + "process/in-list";
    return myaxios.get(url, params);
  },

   /**
   *未审批列表（带分页）
   * @param {object} params 参数列表 {page:1, pagesize:4}
   */
   queryUnExamineList(params) {
    let url = BMDURL + "process/un-list";
    return myaxios.get(url, params);
  },

    /**
   *修改sp
   * @param {object} params 参数列表 {id}
   */
   queryExamineById(params) {
    let url = BMDURL + "process/lose";
    return myaxios.post(url, params);
  },
 



   /**
   *发送post请求，新增商品
   * @param {object} params
   * 参数列表: form
   */
   addPro(params) {
    let url = BMDURL + "pro/add";
    return myaxios.post(url, params);
  },

  // 修改店铺信息
  queryProRevise(params){
    let url = BMDURL + 'pro/revise'
    return myaxios.post(url, params);
  }
};

export default examineApi;